package nuig.prolog.PrologAccess.impl;

import java.io.FileInputStream;

import nuig.prolog.PrologAccess.IBaseAccess;

import alice.tuprolog.Prolog;
import alice.tuprolog.Theory;

public class BaseAccess implements IBaseAccess{

	Prolog engine=new Prolog();
	
	
	//零时方法直接调用prolog引擎
	public String execute(String type) {
		String path = this.getClass().getResource("/").getPath();
		path+="nuig/prolog/PLFile/Main.pl";//放入配置文件里或者用spring解决
		System.out.println(path);
		//Theory theory = new Theory(new FileInputStream("test.pl"));
		return "";
	}
}
